home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / drdtips.zip / 1408.TXT < prev    next >
Text File  |  1992-04-01  |  4KB  |  94 lines

  1. Document 1408
  2. COMSPEC MAPPING ON NOVELL NETWORK
  3.  
  4. Description:
  5. LOGIN SCRIPT FOR SYSTEM WITH BOTH COMPAQ DOS 3.31 AND DR DOS 6.0
  6.  
  7. When setting up a Novell NetWare Network Server machine, it is
  8. normal for a Network Administrator to actually create a
  9. directory structure on the server's hard drive which contains
  10. all the various DOS operating system files for all the various
  11. DOS operating systems being used by network's DOS clients.  This
  12. is often done to accommodate clients to the server who do not
  13. have their own hard drive.  That is, such clients can use the
  14. server to access their DOS files and programs instead of their
  15. local floppy drive.
  16.  
  17. For instance, a network server serving five clients using two
  18. different operating systems, say MS DOS 3.30 and COMPAQ DOS
  19. 3.31, will have two directories which contain all the operating
  20. system files contained in the clients' DOS directories.  These
  21. directories might have paths on the server like
  22. SYS:PUBLIC/MSDOS/V3.30 and SYS:PUBLIC/COMPAQ/V3.31.
  23.  
  24. When a client running MS DOS 3.30 attaches to the server and
  25. logs in to this environment, it is important that the client's
  26. DOS PATH and COMSPEC variables be adjusted to "point" (or MAP)
  27. to the server's copy of the client's DOS files.  This is
  28. normally accomplished by the Network Administrator who makes
  29. some changes and adjustments to one of the server's files called
  30. the System Login Script.  This Login Script is the NetWare
  31. Operating System's DOS operating system batch file equivalent.
  32. Using a few basic commands in this System Login Script, the
  33. Network Administrator can determine which DOS operating system
  34. the server client is currently using and then map that client in
  35. the right direction.
  36.  
  37. If a user is using DR DOS as the client operating system on a
  38. Novell Network, it may not be immediately apparent as to how a
  39. DR DOS client can be properly identified and mapped from within
  40. the System Login Script.
  41.  
  42. Normally, a line like MAP INS S2:=SYS:PUBLIC/%OS/%OS_VERSION in
  43. the System Login Script will handle the mapping properly.  When
  44. DR DOS is the DOS client's operating system, however, the %OS
  45. and %OS_VERSION variables actually return MS DOS and v3.31
  46. respectively.  It is obvious how this can cause confusion.  The
  47. DR DOS operating system is most compatible with MS DOS/COMPAQ
  48. DOS version 3.3X.  It is for this reason that DR DOS appears to
  49. the NetWare operating system to be MS DOS 3.31. As a result,
  50. both COMPAQ DOS 3.31 and DR DOS versions 5.0 and 6.0 will end up
  51. being mapped to the same sub-directory on the NetWare server's
  52. hard drive.
  53.  
  54. In order to prevent such conflicts, a little extra work is
  55. required when writing the System Login Script.  Because the DR
  56. DOS client operating system actually maintains two environment
  57. variables called OS and VER which equal DRDOS and 5.0 or 6.0
  58. respectively, it is actually possible to test the DOS client
  59. operating system in the System Login Script to determine if the
  60. DOS client is running COMPAQ DOS 3.31, DR DOS 5.0 or DR DOS 6.0.
  61. Once the DR DOS client is detected, the Login Script should map
  62.  
  63.  
  64. SYS:PUBLIC/%MACHINE/DRDOS/5.0  or  SYS:PUBLIC/%MACHINE/DRDOS/6.0
  65.  
  66. This sample System Login Script explains and implements such a
  67. technique:
  68.  
  69. REM  These lines establish environment variables OS and VER
  70. REM  if the DOS client is NOT running DR DOS (any version.) 
  71. REM  That is, any DOS client operating system other that
  72. REM  DR DOS does not already maintain the environment
  73. REM  variables OS and VER, and as a result,
  74. REM  they need to be set.
  75.  
  76. IF <OS> != "DRDOS" AND <OS> != "DRMDOS" THEN BEGIN  
  77.     DOS SET OS="%OS"
  78.     DOS SET VER="%OS_VERSION" 
  79. END
  80.  
  81. REM  All that's left to be done is to map the DOS client using
  82. REM  the DOS environment variables <OS> and <VER>.
  83.  
  84. MAP INS S2:=%FILE_SERVER/SYS:PUBLIC/%MACHINE/%<OS>/%<VER>
  85. COMSPEC=S2:COMMAND.COM
  86.  
  87. The above script would result in the following:
  88.  
  89. Compaq DOS 3.31's map would be: SYS:PUBLIC\PC_DOS\MSDOS\3.31\
  90.  
  91. DR DOS 6.0's map would be: SYS:PUBLIC\PC_DOS\DRDOS\6.0\
  92.  
  93. DR Multiuser DOS's map would be: SYS:PUBLIC\PC_DOS\DRMDOS\5.0\
  94.